package org.thava.fortune;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class FortuneData {
	public void printOut() throws Exception{
	File dir = new File("/home/thava/workspace/fortune-android/res/raw/");

	String[] children = dir.list();
	if (children == null) {
	    // Either dir does not exist or is not a directory
	} else {
	    for (int i=0; i<children.length; i++) {
	        // Get filename of file or directory
	        String filename = children[i];
			Scanner sc = new Scanner(new File(filename));
			sc.useDelimiter("%");
			while(sc.hasNext()){
				System.out.println(sc.next());
			}
	    }
	}
	}
	public static void main(String[] args){
		
	}
}
